﻿
using System.Data;
using DataSync.Properties;

namespace DataSync.Models.AppSetting
{
    public class AppSetting
    {
        public static DataSet GenearteAppSetting()
        {
            var dataTable = new DataTable("SettingDataTable");
            //Synchronize attendance time
            var dataColumn = new DataColumn(Resources.SettingSynchronizeTime);
            dataTable.Columns.Add(dataColumn);

            //Synchronize attendance frequency
            dataColumn = new DataColumn(Resources.SettingSynchronizeFrequency);
            dataTable.Columns.Add(dataColumn);

            //Send mail time
            dataColumn = new DataColumn(Resources.SettingSendMailTime);
            dataTable.Columns.Add(dataColumn);

            //Send mail frequency
            dataColumn = new DataColumn(Resources.SettingSendMailFrequency);
            dataTable.Columns.Add(dataColumn);

            //Synchronize employee time
            dataColumn = new DataColumn(Resources.SettingEmployeeTime);
            dataTable.Columns.Add(dataColumn);

            var dataSet = new DataSet("SettingDataSet");
            dataSet.Tables.Add(dataTable);

            return dataSet;
        }
    }
}